<?php

class User_Model_UsersGroups extends Pldkp_Db_Table_Abstract
{
    protected $_name = 'users_groups';

    protected $_referenceMap    = array(
        'User' => array(
            'columns'           => array('user_id'),
            'refTableClass'     => 'User_Model_Users',
            'refColumns'        => array('id'),
            'onDelete'          => self::CASCADE
        ),
        'Group' => array(
            'columns'           => array('group_id'),
            'refTableClass'     => 'User_Model_Groups',
            'refColumns'        => array('id'),
            'onDelete'          => self::CASCADE
        )
    );

}